package com.gome.axwl.aoc.service;

import java.util.List;

import com.anxl.sso.client.api.Account;
import com.anxl.sso.client.api.AccountInfo;
import com.gome.axwl.aoc.entity.po.AmAuditSettingPo;
import com.gome.commons.core.ResultData;

/**
 * 默认审核配置
 *
 * @author John Li
 * @date 2018年7月16日11:15:48
 * @copyright(c) gome inc Gome Co.,LTD
 */
public interface AuditSettingService {

    /**
     * 根据条件得到设备信息
     * @param amAuditSettingPo
     * @return
     */
    List<AmAuditSettingPo> selectSelective(AmAuditSettingPo amAuditSettingPo);

    /**
     * 新增默认配置
     * @param amAuditSettingPo
     */
    void addAuditSetting(AmAuditSettingPo amAuditSettingPo);

    /**
     * 删除默认配置
     * @param defaultId
     */
    ResultData deleteAuditSettingById(int defaultId);

    /**
     * 更新默认配置
     * @param amAuditSettingPo
     */
    Integer updateAuditSettingByDefaultId(AmAuditSettingPo amAuditSettingPo);

    /**
     * 根据用户id查询信息
     * @param accountNo
     * @return
     */
    AccountInfo getUserInfoByAccountNo(String accountNo);

    /**
     * 查询审核权限列表
     *@param  keyword
     * @return
     */
    ResultData getAuditPrivilegeList(String keyword);


    /**
     * 判断用户是否有审核权限
     *
     * @return
     */
    Boolean isUserHasAuditPrivilege(String accountNo);

    List<Account> queryAccountByKeyword(String keyWord);


}

